package com.example.mam.shiro;

import org.apache.shiro.SecurityUtils;

/**
 * @author muncie [muncie.hoo@qq.com]
 */
public class ShiroUtil {
    public static Long getCurrentUserId() {
        System.out.println(SecurityUtils.getSubject().getPrincipal());
        return (long) SecurityUtils.getSubject().getPrincipal();
    }
}
